package de.lengnis.games.brickdrop;

import java.awt.Dimension;

import javax.swing.JFrame;

import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

import de.lengnis.games.brickdrop.view.MainView;
import de.lengnis.games.brickdrop.view.View;

public class Main extends SingleFrameApplication {
	
	public static final int WIDTH = 480;
	public static final int HEIGHT = 480;

    @Override
    public void startup() {

        View view = new MainView();

        show(view.createView());

        JFrame mainFrame = getMainFrame();
        mainFrame.setTitle("Brickdrop");
        mainFrame.setSize(new Dimension(WIDTH, HEIGHT));
    }

    public static void main(String[] args) {
        Application.launch(Main.class, args);
    }
}
